package leetcode;




import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * create by duanx 2022/2/7
 *@classname: Test3
 *@author: duanx
 *@date: 2022/2/7 9:22
 **/
public class Test6 {

    public static void main(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        try {
            String str;
            while ((str = reader.readLine())!=null){
                int index = str.indexOf('.');
                int n = str.charAt(index+1);
                int num = Integer.parseInt(str.substring(0,index));
                if (n>52){
                    num = num+1;
                }
                System.out.println(num);
            }

        } catch (IOException e) {
            e.printStackTrace();
        }
    }


}
